package com.bdqn.zhang.pojo;

import org.springframework.format.annotation.DateTimeFormat;

public class User {
    private int id;

    private String username;

    private  String password;

    private String address;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createdate;

    private int isDel;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(String username, String password,String address,String createBy,String createdate) {
        this.username = username;
        this.password = password;
        this.address=address;
        this.createBy=createBy;
        this.createdate=createdate;
    }

    public int getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getAddress() {
        return address;
    }

    public String getCreateBy() {
        return createBy;
    }

    public String getCreatedate() {
        return createdate;
    }

    private String createBy;

    public void setId(int id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }
    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

}
